

          <form  id="quick-search" action="?tagSearch" method="get">
             
                             
            <div id="tagSearchBox"  >  
                             
                            <ul class="listLinks">
                            <li><a href="#" onclick='document.getElementById("addnew").style.display="block"'>Add new</a></li>
                             <li  id="addnew" style="display:none"> 
                             <input  name="listname"  type="text" maxlength="100" id="listname" /> 
                             <input name="add" type="button" value="OK"  onclick='manageList(document.getElementById("listname").value,"add","")'/> </li>
                             
                             
                             <li><a href="#" onclick='document.getElementById("rename").style.display="block"'>Rename selected</a></li>
                             <li  id="rename" style="display:none"> 
                             <input  name="oldname"  type="text" maxlength="100" id="oldname" /> 
                             <input name="add" type="button" value="OK"  onclick='manageList(selectedItem,"rename",document.getElementById("oldname").value)'/> 
                             </li>
                             
                             <li><a href="#" onclick='manageList(selectedItem,"default","")'>Set to default</a></li>
                            <li><a href="#" onclick="window.location.href='?list='+selectedItem">Browse Selected</a></li>
                             <li><a href="#" onclick='manageList(selectedItem,"remove","")'>Delete selected</a></li>
                            
                            </ul>
            </div>
                
                          
                                                    
                                        
                                    <cfquery  datasource="101tf2" name="getList">
                                    select * from list  where type NOT in ('favitem') order by  	lastdate desc
                                    </cfquery>
                                     	<cfset putDiv=0>	
                                        <cfoutput query="getList"> 
<cfif defaultlist><script>
 var selectedItem ='#ID#';
 </script></cfif>
                                        <cfif not putDiv><div class="floatleft listLinks"   ><cfset putDiv=0></cfif>
                                        <cfset putDiv=1+putDiv>
                                       <input  <cfif defaultlist> CHECKED='checked'</CFIF> type="radio" value="#id#" name="listid"  onclick="selectedItem='#id#';"  /> <span class="txtNormal"  > #name# </span>
									   <cfif defaultlist><i><small>Default</small></i> </cfif><small> (#DateFormat(lastdate,'ddd/mmm/yyyy')# #timeFormat(lastdate,'hh:mm:ss')#)</small> 
                                      <div class="listline" ></div> 
                                       <cfif putDiv is 7 or currentrow is recordcount></div><cfset putDiv=0></cfif>
                                        </cfoutput>  
          </form>	